package com.jy.api.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.hibernate.annotations.Type;

import javax.persistence.*;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author xiaohua
 * @data 2024/9/9 0009 10:37
 */
@Slf4j
@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
public class NetSchedulingTransaction {

    @Id
    @Column(length = 11)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private int id;

    @ApiModelProperty("店铺id")
    private String storeId;

    @ApiModelProperty("区域")
    private String area;

    @ApiModelProperty("区域")
    private int  areaId;

    @ApiModelProperty("手机号")
    private String mobile;


    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("编号")
    private String num;

    @ApiModelProperty("排单员工")
    private String empName;

    @ApiModelProperty("0等号中，1已上机，2已过号")
    private int type;

    @Temporal(TemporalType.TIMESTAMP)
    private Date addTime=new Date();

    @Temporal(TemporalType.TIMESTAMP)
    private Date updateTime=new Date();

    @ApiModelProperty("是否已打印")
    private boolean printEnabled=false;

    @ApiModelProperty("扫码的用户")
    @Type(type = "com.jy.api.domain.json.StringArrayJson")
    @Column(columnDefinition = "text")
    private List<String> openId=new ArrayList<>();



}
